function getMemberList (params) {
  return $axios({
    url: '/user/page',
    method: 'get',
    params
  })
}

// 修改---启用禁用接口
function enableOrDisableEmployee (params) {
  return $axios({
    url: '/user',
    method: 'put',
    data: { ...params }
  })
}

// 新增---添加员工
function addUser (params) {
  return $axios({
    url: '/user',
    method: 'post',
    data: { ...params }
  })
}

// 修改---添加员工
function editUser(params) {
  return $axios({
    url: '/user',
    method: 'put',
    data: { ...params }
  })
}

// 修改---添加员工
function deleProvider (id)  {
  return $axios({
    url: '/user',
    method: 'delete',
    params: { id }
  })
}

// 修改页面反查详情接口
function queryEmployeeById (id) {
  return $axios({
    url: `/user/${id}`,
    method: 'get'
  })
}

// 文件down预览
const commonDownload = (params) => {
  return $axios({
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
    },
    url: '/common/download',
    method: 'get',
    params
  })
}
